﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class Control_menu_left_left_product_menu : System.Web.UI.UserControl
{
    private DataAccess da = new DataAccess();
    protected void Page_Load(object sender, EventArgs e)
    {
        DataSet dts = new DataSet();
        SqlDataAdapter adt = new SqlDataAdapter();
        SqlCommand comm = new SqlCommand("GetAllNhomHang", da.SqlConn());
        comm.CommandType = CommandType.StoredProcedure;
        comm.Connection.Open();
        adt.SelectCommand = comm;
        adt.Fill(dts);
        this.DataList2.DataSource = dts;
        this.DataList2.DataBind();
        dts.Clear();
        adt.Dispose();
        comm.Connection.Close();
        comm.Connection.Dispose();
    }
}
